<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:rich="http://richfaces.org/rich"
      xmlns:core="http://www.contact.core.com/contacts/core/ui"
      xmlns:a4j="http://richfaces.org/a4j"
        >
<!--@elvariable id="id" type="java.lang.String"-->
<!--@elvariable id="header" type="java.lang.String"-->
<!--@elvariable id="value" type="java.lang.String"-->
<!--@elvariable id="reRender" type="java.lang.Object"-->
<!--@elvariable id="bean" type="rs.contacts.core.ui.util.ActionBean"-->
<ui:component>
    <style type="text/css">
        .richHeader {
            min-height: 15px;
            overflow: auto;
        }

        .richBody {
            padding: 0px;
            background: #F7F7F7;
            text-align: center;
        }
    </style>
    <rich:panel id="#{id}" headerClass="richHeader" bodyClass="richBody">
        <f:facet name="header">
            <!--<h:panelGrid columns="2" style="width:100% ;">-->
            <h:panelGroup style="width:100%" layout="block">
                <h:panelGroup style="float:left">
                    <h:outputLabel value="#{header}"/>
                </h:panelGroup>
                <h:panelGroup style="float:right">
                    <a4j:commandLink id="close#{id}"
                                     value="#{resources.closeLabel}"
                                     action="#{bean.close}"
                                     reRender="#{reRender}">
                        <f:param name="current" value="#{value}"/>

                    </a4j:commandLink>
                </h:panelGroup>
            </h:panelGroup>

            <!--</h:panelGrid>-->

        </f:facet>
        <h:panelGroup layout="block">
            <ui:insert name="panelBody">
                <h:outputLabel value="Default body panelBody"/>
            </ui:insert>
        </h:panelGroup>

    </rich:panel>
</ui:component>


</html>
